<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="security" uri="/security" %>
<c:set var="BASE" value="${pageContext.request.contextPath}" />
<html>
<head>
	<title>首页</title>
</head>
<body>
<h1>首页</h1>

<security:guest>
	<p>游客</p>
	<a href="<c:url value="${BASE}/login"/>" >登录</a>
</security:guest>

<security:user>
	<p>身份：<security:principal/></p>
	<ul>
		<li><a href="${BASE}/customer" >客户管理</a></li>
	</ul>
	<a href="${BASE}/logout">注销</a>
</security:user>

</body>
</html>
